import { HttpResultUtil } from '@/apis/utils/HttpResultUtil.ts'
import type { ResultTypes } from '@/resources/interface/ResultTypes.ts'

export class FileApi {
  public static uploadUrl:string='/api/file/upload'
  private static deleteUrl:string='/file/delete'

  static delete(file: string): Promise<ResultTypes> {
    return HttpResultUtil.awaitGet(this.deleteUrl, {fileName:file},false)
  }
}
